var webpack  = require("webpack");

module.exports = {
    entry: [
        './src/_window',
        "./src/app"],
    output: {
        path: './build',
        filename: "bundle.js",
        publicPath: './build/'
    },
    module: {
        loaders: [
            { test: /\.css$/, loader: "style!css" },
            { test: /\.less$/, loader: "style!css!less?outputStyle=expanded" },
            {
                test: /\.js$/,
                loaders: ['babel?stage=0&loose[]=es6.modules'],
                exclude: /node_modules/
            }, {
                test: /\.(png|jpg|gif)$/,
                loader: 'url-loader?limit=8192'
            }
        ]
    },
    plugins: [
        new webpack.NoErrorsPlugin()
    ],
    resolve: {
        extensions: ['', '.jsx', '.js','.scss','.css','.less']
    }
};
